package com.bs.jianli.service.impl;

import com.bs.jianli.entity.Menu;
import com.bs.jianli.mapper.MenuMapper;
import com.bs.jianli.service.IMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bs.jianli.util.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 菜单管理表 服务实现类
 * </p>
 *
 * @author yao
 * @since 2023-01-13
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IMenuService {

    @Resource
    MenuMapper mapper;
    @Override
    public List<Menu> getByPid(String pid) {
        return mapper.getByPid(pid);
    }

    @Override
    public List<Menu> byMenus(String userid, String pid) {
        return mapper.byMenus(userid, pid);
    }

    @Override
    public List<String> byPression(String userid) {
        return mapper.byPression(userid);
    }
}
